
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
if [ "$OS" = "RedHat" ];then
	yum -y install gcc gcc-c++ make readline-devel pcre-devel openssl-devel perl
fi
if [ "$OS" = "Debian" ];then 
	apt-get -y update
	apt-get -y install libreadline-dev libpcre3-dev libssl-dev cmake perl libncurses5-dev build-essential
fi